package com.nervenets.shopping.hibernate.domain.common;

import com.nervenets.general.hibernate.DomainObject;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 银行相关信息
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Table
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Bank extends DomainObject {
    @ApiModelProperty(value = "关联人ID")
    private long unionId;
    @ApiModelProperty(value = "姓名")
    private String name;
    @ApiModelProperty(value = "卡号")
    private String number;
    @ApiModelProperty(value = "签发银行")
    private String signedOrgan;
    @ApiModelProperty(value = "签发网点")
    private String signedBranch;
}
